package com.scl.springtalis.mapper;

import com.scl.springtalis.polo.Dept;


import com.scl.springtalis.polo.Result;
import org.apache.ibatis.annotations.*;

import java.util.List;


@Mapper
public interface DeptMapper {
    @Select("select *from dept")
    List<Dept> list();
    @Delete("delete from dept where id=#{id}")
    void Delete(int id);
    @Insert("insert into dept (id, name, create_time, update_time) values (#{id},#{name},#{createTime},#{updateTime})")
    void Add(Dept dept);

}
